import request from "@/utils/request";

export default {
    getListByType(page, limit, type) {
        return request({
            method: "GET",
            url: "/jhTravelInfo/list",
            params: {
                page: page, //当前页
                limit: limit, //每页数据多少条
                type: type
            }
        })
    },

    getDetailById(id, countFlag) { //flag 是否计入浏览次数
        return request({
            method: "POST",
            url: "/jhTravelInfo/detail",
            params: {
                id: id,
                countFlag: countFlag
            }
        })
    }
}